home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / src / binutils.252 / ld / scriptte / h8300.sc < prev    next >
Encoding:
Text File  |  1994-09-07  |  897 b   |  60 lines

  1. cat <<EOF
  2. OUTPUT_FORMAT("${OUTPUT_FORMAT}")
  3. OUTPUT_ARCH(${ARCH})
  4.  
  5. MEMORY {
  6.     rom   : o = 0x0000, l = 0x7fe0 
  7.     duart : o = 0x7fe0, l = 16
  8.     ram   : o = 0x8000, l = 28k
  9.     topram : o = 0x8000+28k, l = 1k
  10.     hmsram : o = 0xfb80, l = 512
  11.     }
  12.  
  13. SECTIONS                 
  14. {                     
  15. .text :
  16.     {                     
  17.       *(.text)                 
  18.       *(.strings)
  19.         ${RELOCATING+ _etext = . ; }
  20.     } ${RELOCATING+ > ram}
  21. .tors   : {
  22.     ___ctors = . ;
  23.     *(.ctors)
  24.     ___ctors_end = . ;
  25.     ___dtors = . ;
  26.     *(.dtors)
  27.     ___dtors_end = . ;
  28. }  ${RELOCATING+ > ram}
  29. .data  :
  30.     {
  31.     *(.data)
  32.     ${RELOCATING+ _edata = . ; }
  33.     } ${RELOCATING+ > ram}
  34. .bss  :
  35.     {
  36.     ${RELOCATING+ _bss_start = . ;}
  37.     *(.bss)
  38.     *(COMMON)
  39.     ${RELOCATING+ _end = . ;  }
  40.     } ${RELOCATING+ >ram}
  41. .stack : 
  42.     {
  43.     ${RELOCATING+ _stack = . ; }
  44.     *(.stack)
  45.     } ${RELOCATING+ > topram}
  46.   .stab  0 ${RELOCATING+(NOLOAD)} : 
  47.   {
  48.     [ .stab ]
  49.   }
  50.   .stabstr  0 ${RELOCATING+(NOLOAD)} :
  51.   {
  52.     [ .stabstr ]
  53.   }
  54. }
  55. EOF
  56.  
  57.  
  58.  
  59.  
  60.